#include<stdio.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/wait.h>


int main()
{
  printf("父进程正在运行,pid:%d\n",getpid());
  pid_t id = fork();
  if(id == 0)//子进程
  {

  }
  printf("程序正在运行！\n");

//  execl("/usr/bin/ls","ls","-l","-a",NULL);

//  printf("程序已经被替换!\n");
  return 0;
}
